package com.zb_study.printstream;

import java.io.IOException;
import java.io.PrintStream;

public class PrintStream_ {
    public static void main(String[] args) throws IOException {


        PrintStream out = System.out;

        out.print("join, hello");

        out.write("周波，你好".getBytes());


        System.setOut(new PrintStream("e:\\f1.txt"));
        System.out.println("hello,zb");

        out.close();
    }
}
